/**
 * @author bipul_sinha
 * @version 1.0
 * @created 10th November, 2010.
 *
 * ITimestampable
 *
 * Copyright @ 2010 by 
 * All Rights Reserved.
 * CONFIDENTIAL AND TRADE SECRET
 */
package com.ces.knacky.framework.model;

import java.util.Date;

/**
 * It provides a contract to be used to log date and time when the object is created or updated.
 * 
 * @author bipul_sinha
 *
 */
public interface ITimestampable {
	/**
	 * This method provides a contract to return date time of the object creation.
	 * 
	 * @return 	Date
	 * 			Represents date time of the object creation. 
	 */
    public Date getCreateTime ();

    /**
     * This method provides a contract to set the date time during object creation.
     * 
     * @param 	createTime
     * 			Represents date time of the object creation. 
     */
    public void setCreateTime (Date createTime);
	/**
	 * This method provides a contract to return date time of the object update operation.
	 * 
	 * @return 	Date
	 * 			Represents date time when the object was last updated. 
	 */
    public Date getUpdateTime ();
    /**
     * This method provides a contract to set the date time during object update process.
     * 
     * @param 	updateTime
     * 			Represents date time when the object is updated. 
     */
    public void setUpdateTime (Date updateTime);

}

